# Contributor: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=timblserver
pkgver=1.18
pkgrel=1
pkgdesc="Server part for TiMBL (memory-based learning)"
arch="all"
url="https://github.com/LanguageMachines/timblserver"
license="GPL-3.0-only"
makedepends="libtool ticcutils-dev timbl-dev icu-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/timblserver/releases/download/v$pkgver/timblserver-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

check() {
	LD_LIBRARY_PATH="$PWD/src/.libs/" make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
286e5bce46e2962216a7cae661e51922cd1c354d348a09f91c001cd37e8dd6be8326a32b26200b865ccf263b6f0d738b269c688083bdd41d439a1d192aab79c5  timblserver-1.18.tar.gz
"
